//
//  ChooseLocationRange.m
//  meiyinxiang
//
//  Created by apple on 2017/11/11.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "ChooseLocationRange.h"
@interface ChooseLocationRange()
@property (weak, nonatomic) IBOutlet UIButton *onekmBtn;
@property (weak, nonatomic) IBOutlet UIButton *threekmBtn;
@property (weak, nonatomic) IBOutlet UIButton *fivekmBtn;

@end

@implementation ChooseLocationRange
- (IBAction)onekmBtn:(id)sender {
    if (self.chooseBlock) {
        self.chooseBlock(0);
    }
}
- (IBAction)threekmBtn:(id)sender {
    if (self.chooseBlock) {
        self.chooseBlock(1);
    }
}
- (IBAction)fivekmBtn:(id)sender {
    if (self.chooseBlock) {
        self.chooseBlock(2);
    }
}
+ (ChooseLocationRange *)loadNibChooseView{
    UINib *nib = [UINib nibWithNibName:@"ChooseLocationRange" bundle:[NSBundle mainBundle]];
    return [[nib instantiateWithOwner:nil options:nil] lastObject];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
